<ul class="layui-nav layui-nav-tree" lay-filter="test">
  <li class="layui-nav-item layui-nav-itemed">
    <a href="javascript:;">帐号设置</a>
    <dl class="layui-nav-child">
      <dd class="{if '[curr]'=='setting'}layui-this{/if}"><a href="{:url('user/setting')}">账户信息</a></dd>
      <dd class="{if '[curr]'=='setPassword'}layui-this{/if}"><a href="{:url('user/setPassword')}">修改密码</a></dd>
      <dd class="{if '[curr]'=='setNickname'}layui-this{/if}"><a href="{:url('user/setNickname')}">修改昵称</a></dd>
      <dd class="{if '[curr]'=='setEmail'}layui-this{/if}"><a href="{:url('user/setEmail')}">修改邮箱</a></dd>
      <dd class="{if '[curr]'=='setAvatar'}layui-this{/if}"><a href="{:url('user/setAvatar')}">修改头像</a></dd>
      <dd><a href="{:url('index/logout')}">退出</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="javascript:;">成为作者</a></li>
</ul>